package org.example.chainOfResponsibility.correctMethodEvolution;

import org.example.chainOfResponsibility.correctMethod.AbstractHandler;

/**
 * @author weigang
 * @create 2022-07-26 10:33
 */
public abstract class GatewayHandler {
    /**
     * 下一关用当前抽象类来接收
     */
    public GatewayHandler next;

    public void setNext(GatewayHandler next) {
        this.next = next;
    }

    public abstract int handler();
}
